package com.dave.start;

/**
 * @Author Dave
 * @Date 2018/8/9
 * @Description
 */
public class Apple {
    public final static String COLOR_RED = "red";
    public final static String COLOR_GREEN = "green";

    public Apple() {
    }



    private Integer weight;
    private String color;

    public Apple(Integer weight, String color) {
        this.weight = weight;
        this.color = color;
    }

    @Override
    public String toString() {
        return "Apple{" +
                "weight=" + weight +
                ", color='" + color + '\'' +
                '}';
    }


    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
